import components from "./components.mjs"
import { createApp } from "vue"
import { createPinia } from "pinia"
import {createRouter, createMemoryHistory} from "vue-router"
import home from "./index.vue"
import login from "./login.vue"
import vconsole from "vconsole"

const routes = [
    {path: '/login', component: login},
    {path: '/', component: home},
]

const router = createRouter({
    history: createMemoryHistory(),
    routes,
})

var app = createApp({})
var pinia = createPinia()

for (var i in components) {
    app.component(i, components[i])
}
app.use(router)
app.use(pinia)
app.mount("#app")
new vconsole()
